//=============================================================================
// tfHUDInfo1Msg.
//=============================================================================
class tfHUDInfo1Msg extends LocalMessage;

static function string GetString(
    optional int Switch,
    optional PlayerReplicationInfo RelatedPRI_1,
    optional PlayerReplicationInfo RelatedPRI_2,
    optional Object OptionalObject
    )
{
    if(optionalobject==none)
        return "";
    if(tfStation(optionalobject)!=none)
        return tfStation(optionalobject).buildingname;
    else if(baseSentinel(optionalobject)!=None)
         return baseSentinel(optionalobject).Sname;
    else if(pawn(optionalobject)!=none && pawn(optionalobject).playerreplicationinfo!=none)
    {
        //if(relatedpri_1.Team.teamindex!=pawn(optionalobject).playerreplicationinfo.team.teamindex)
            return pawn(optionalobject).playerreplicationinfo.playername;
    }
    return "";
}

defaultproperties
{
     bIsUnique=True
     bIsConsoleMessage=False
     bFadeMessage=True
     Lifetime=1
     PosY=0.750000
}
